package com.chushouya.manager.dto.admin.partner;

import com.general.framework.core.enums.StatusEnum;
import com.chushouya.manager.constants.PartnerTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("合作商列表")
@Data
public class PartnerListDTO {
    @ApiModelProperty("合作商ID")
    private Long partnerId;

    @ApiModelProperty("合作商姓名")
    private String partnerName;

    @ApiModelProperty("速回收用户ID")
    private Long adminUserId;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("是否配置估价规则")
    private Integer hasRules;

    @ApiModelProperty("是否配置结算规则")
    private Integer hasRatio;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("类型")
    private Integer partnerType;

    @ApiModelProperty("类型")
    private String partnerTypeText;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    public String getPartnerTypeText() {
        return PartnerTypeEnum.getDesc(this.partnerType);
    }

    public String getStatusText() {
        return StatusEnum.getDesc(this.status);
    }
}
